<?php use_javascript('/js/jquery.min.js') ?>
<?php use_javascript('/js/jquery.carousel.min.js') ?>
<?php use_javascript('/markitup/jquery.markitup.pack.js') ?>
<?php use_javascript('/markitup/sets/default/backend.js') ?>
<?php use_stylesheet('/css/backend.css') ?>
<?php use_stylesheet('/css/content.css') ?>
<?php use_stylesheet('/css/highlight.css') ?>
<?php use_stylesheet('/markitup/skins/markitup/style.css') ?>
<?php use_stylesheet('/markitup/sets/default/backend.css') ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <title>
      Administration :: <?php include_slot('title', 'Hugo Hamon - PHP 5 / Symfony Specialist and Trainer') ?>
    </title>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
  <body>
    <div class="global">
      <div class="top">
        <div class="logo">
          <?php echo link_to('<span>Administration</span>', 'homepage') ?>
        </div><!-- end of div.logo -->
        <?php if ($sf_user->isAuthenticated()) : ?>
        <div class="horizontal-nav">
          <ul>
            <li><?php echo link_to(__('Categories'), 'blog_category') ?>&nbsp;<span>|</span></li>
            <li><?php echo link_to(__('Bookmarks'), 'blog_bookmark') ?>&nbsp;<span>|</span></li>
            <li><?php echo link_to(__('Blog roll'), 'blog_roll_link') ?>&nbsp;<span>|</span></li>
            <li><?php echo link_to(__('Comments'), 'blog_comment') ?>&nbsp;<span>|</span></li>
            <li><?php echo link_to(__('Blog posts'), 'blog_post') ?>&nbsp;<span>|</span></li>
            <li><?php echo link_to(__('Signout'), 'sf_guard_signout') ?>&nbsp;</li>
          </ul>
        </div><!-- end of div.horizontal-nav -->
        <?php endif ?>
      </div><!-- end of div.top -->
      <div class="visualClear"></div>
      <?php include_partial('global/flashes') ?>
      <div class="main">
        <div class="main-content"<?php if (!$sf_user->isAuthenticated()) : echo ' style="width: 98%"'; endif ?>>
          <?php echo $sf_content ?>
        </div><!-- end of div.content -->
        
        <?php if ($sf_user->isAuthenticated()) : ?>
        <div class="sidebar">

          <?php if (has_slot('filters')) : ?>
          <div class="component-slot">
            <h2><?php echo __('Search') ?></h2>
            <?php include_slot('filters') ?>
          </div>
          <?php endif ?>

          <div class="component-slot">
            <h2><?php echo __('Categories') ?></h2>
            <?php include_component('category', 'all') ?>
          </div>
          <div class="component-slot">
            <h2><?php echo __('Blog roll') ?></h2>
            <?php include_component('blogroll', 'lastLinks') ?>
          </div>
          <div class="component-slot">
            <h2><?php echo __('Bookmarks') ?></h2>
            <?php include_component('bookmark', 'lastLinks') ?>
          </div>
        </div><!-- end of div.sidebar -->
        <?php endif ?>

        <div class="visualClear"></div>
      </div><!-- end of div.main -->
      <div class="footer">
        <p>
          &copy; Copyright 2008-<?php echo date('Y') ?> - Hugo HAMON - <?php echo __('all rights reserved') ?>
        </p>
        <p>
          Powered with 
          <?php echo link_to(image_tag('ads/symfony_button.gif', array('alt' => 'Symfony Framework')), 'http://www.symfony-project.org') ?> 
          and hosted by 
          <?php echo link_to(image_tag('ads/server_grove_button.gif', array('alt' => 'Server Grove Hosting')), 'http://servergrove.com') ?>.
        </p>
      </div><!-- end of footer -->
      <div class="end-of-page"></div>
    </div><!-- end of div.global -->
  </body>
</html>